package pri.zxx.webdemo.services;

/**
 * @author Twilight
 * @desc
 * @createTime 2020-05-23-21:12
 */

import jakarta.annotation.Resource;
import org.springframework.stereotype.Service;
import pri.zxx.webdemo.entity.SysUser;
import pri.zxx.webdemo.mappers.SysUserMapper;

import java.util.List;

@Service
public class SysUserService implements SysUserServiceInterfase {

	@Resource
	private SysUserMapper sysUserMapper;

	@Override
	public List<SysUser> listByCondition(Integer page, Integer size) {
		return sysUserMapper.listByCondition((page - 1) * size, size);
	}

	@Override
	public Integer listByConditionCount() {
		return sysUserMapper.listByConditionCount();
	}

}
